{
// 泛型接口
interface Student<T>{
    id:number
    name:T
    hobby:string[]
}
let s1:Student<string>={
    id:1,
    name:'李华',
    hobby:['学习','踢足球','玩游戏']
}
let s2:Student<number>={
    id:1,
    name:120,
    hobby:['学习','踢足球','玩游戏']
}
}